package org.sql.example.helloword;

import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

@Path("welcome")
public class Welcome {
	private String message = "welcome";

	@GET
	public Response welcome() {
		return Response.status(299).entity(message)
				.header("custmerHeader", "custmerValue").build();
	}
	@PUT
	public void updateMessage(String newMessage){
		message=newMessage;
	}
}
